package com.ssy.lingxi.system.dao;

import com.ssy.lingxi.system.entity.CommonParameters;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommonParametersRepository extends JpaRepository<CommonParameters, Long> {


    List<CommonParameters> findAllByValueEquals(String value);

    List<CommonParameters> findAllByCodeEquals(String code);

    Page<CommonParameters> findByServiceType(Integer serviceType, Pageable page);


}
